package com.mspbots.core.wise.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mspbots.core.DefaultBaseService;
import com.mspbots.core.wise.model.TenantRule;
import com.mspbots.cw.request.EscalationDTO;
import com.mspbots.cw.request.TenantRuleDTO;

import java.util.List;

public interface TenantRuleService extends DefaultBaseService<TenantRule> {


    List<TenantRuleDTO> listAnalysis(TenantRule query);

    Boolean saveBatch(Long tenantId, long[] ruleIds);

    IPage<TenantRuleDTO> pageDetail(Page<TenantRuleDTO> page, TenantRuleDTO queryParams);

    TenantRuleDTO detail(TenantRuleDTO query);

    List<TenantRuleDTO> getEscalation(TenantRuleDTO query);

    List<EscalationDTO> selectEscalationParams(EscalationDTO query);

    List<TenantRule> selectByTenantId(Long tenantId);
}
